<!DOCTYPE html>
<html>
<head lang="en">

    <meta charset="UTF-8">
    <link rel="stylesheet" href="css/comman.css"/>
    <script src="js/jquery-1.7.2.js"></script>
    <script src="js/common/main.js"></script>
    <script src="js/common/tool.js"></script>
    <title>鸿鑫企业家俱乐部</title>
    <style>
         /*.xBR li{ display: none;}*/
        .xBR .xCentShow{ display: block;}
    </style>
    <script type="text/javascript">
        function logout() {
        /*    $("#onload").show();

            $("#onload .sure").mousedown(function(){
                $(".sure img").attr("src","images/galert3.png");
            });
            $("#onload .sure").mouseup(function(){
                $(".sure img").attr("src","images/galert1.png");
                $("#onload").hide();*/
                $.ajax({
                    url: "hxclub/authen/logout.do",
                    async: false,
                    type : "post",
                    dataType : "json",
                    success:function(d){
                        if(d.success){
                            $(".XCent").removeClass("xCentShow");
                            $(".XLogin").addClass("xCentShow");

                            var fromUrl = getSearchParam('redirectUrl');//是从fromUrl来到登录界面的，所以fromUrl应该设置
                            if(fromUrl != null && fromUrl != ''){
                                //alert("退出登录失败11")
                                window.location.href = fromUrl;
                            } else {//如果找不到上一张页面，则做浏览器退页操作
                                //alert("退出登录失败22")
                                window.location.href = 'index.html';
                            }
                        }
                        else{
                            alert("退出登录失败")
                        }
                    }
                });

           /* });*/
          /*  $("#onload .less").mousedown(function(){
                $(".less img").attr("src","images/galert4.png");
            });
            $("#onload .less").mouseup(function(){
                $(".less img").attr("src","images/galert2.png");
                $("#onload").hide();
            });*/

        }
    </script>
</head>
<body>

<div class="xBR">
<div class="l_login XLogin"><span></span><a href="login.html"> 登录 </a> | <a class="Xa" href="gApply.html"> 注册 </a> </div>
<div class="l_login1 XCent"><span></span> <a class="Xa" href="javascript:;" id="userRealName"></a> | <a href="gCenter.html"> 个人中心 </a> | <a  href="javascript:;" onclick="javascript:logout();"> 退出 </a> </div>
</div>
    <!--<ul class="xBR">
    &lt;!&ndash; <li class="XLogin xCentShow"> &ndash;&gt;
    <li class="XLogin">
        <a class="Xa" href="gApply.html">注册</a>
        <i>|</i>
        <a href="login.html">登录</a>
    </li>
    <li class="XCent">
        <a class="Xa" href="javascript:;" id="userRealName"></a>
        <i>|</i>
        <a href="gCenter.html">个人中心</a>
        <i>|</i>
        <a href="javascript:;" onclick="javascript:logout();">退出登陆</a>
    </li>
</ul>-->
</body>
</html>